home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / PPP.ARJ / PPP.DOC < prev    next >
Text File  |  1993-11-24  |  4KB  |  92 lines

  1. PPPic and PPPal v1.0 (c) Eric van der Staay a.k.a. Magician/Silicon Ltd.
  2. Small docfile...
  3.  
  4. Here's a short description of PPPic and PPPal:
  5.  
  6.  
  7. PPPic is a program that converts the imagedata of a PCX picture file into a
  8. sourcefile written in Turbo Pascal. The sourcefile can either be linked or
  9. copied into a complete program. This way the picture will be compiled within
  10. the program, and you will be left with one (executable) file instead of two
  11. (executable and data) files. 
  12.  
  13. PPPal is a program that converts the palettevalues of a PCX picture file into
  14. a sourcefile written in Turbo Pascal. With this sourcefile you can do the
  15. same as the picture sourcefile.
  16.  
  17. Usage of PPPic and PPPal:
  18.  
  19.  
  20. Both programs can be executed from the command-line by typing PPPic or PPPal
  21. and then ENTER. Both programs will ask you the name of the PCX file to load and
  22. they both will ask you the filename which the data must be written to.
  23.  
  24. Next thing they'll do is for you to type in a procedure name where the data
  25. will be stored. 
  26.  
  27. PPPic will then ask for the dimensions of the picture. * NOTICE * that your
  28. picture cannot be bigger than 24 KBytes because Turbo Pascal does not allow
  29. you to create statements bigger than 24K. If you have a picture bigger than
  30. 24K, you need to split it up in several procedures. It's no big deal.
  31.  
  32. Next, the picture will be showed and saved in the dimensions you entered.
  33. That's it! Your picture is safely saved into a Turbo Pascal procedure... But
  34. now you still need to save the palette! This is where PPPal comes in.
  35.  
  36. PPPal will ask you the same as PPPic, except that he will not ask dimensions.
  37. He only saves the palette into a Turbo Pascal procedure. 
  38.  
  39. Now you are finished! Look in the file TESTPPP.PAS for examples on how to show
  40. your pictures in your own programs.
  41.  
  42. When you have compiled your program you can use an executable file packer like
  43. PKLITE to shrink the bit, so your program won't be so big...
  44.  
  45. Last words:
  46.  
  47.  
  48. I really didn't make these programs to be the best in something or whatever,
  49. I just made them for people who don't know how to do it by themselves, so
  50. they can learn from it... That's the way I learned it!!!
  51.  
  52. If you are going to use these routines, you don't have to credit me, because
  53. everyone can write this (even if everyone couldn't write this you wouldn't
  54. have to credit me anyway), but a 'thank you' or a 'hi Magician/Silicon' would
  55. be nice to see...
  56.  
  57. Also, if you spread these programs, be sure to include all these files:
  58.  
  59. PPPic.Exe       - The PCX picture converter
  60. PPPal.Exe       - The PCX palette converter
  61. TestPPP.Pas     - Example program 
  62. TestPPP.Exe     - Compiled example program with linked in picture
  63. Logo.Pcx        - Simple example logo
  64. Logo.Pas        - Converted image of logo.pcx
  65. LogoPal.Pas     - Converted palette of logo.pcx
  66. PPP.Doc         - This docfile
  67.  
  68. For bugs/comments/other routines, contact me:
  69.  
  70.      Eric van der Staay (Magician/SCL)
  71.      IJweg 133a
  72.      1161 EV  ZWANENBURG
  73.      Holland
  74.      ++31(0)2907-2039
  75.  
  76.      Internet: StagVl1@Bouw.Tno.Nl (Until end of january '94!!!)
  77.  
  78. The projects I'm currently working on are:
  79.  
  80.      MakePlot - A semi-intelligent datafile interpreter for use with e.g.
  81.                 simulation models.
  82.      Cubulus  - A sort of RUBIK's CUBE on a computer. Original idea from
  83.                 Tobias Richter's PD game on Amiga.
  84.      TreePack - A file cruncher for Turbo Pascal datafiles (doesn't work
  85.                 really good yet, coz it's not intelligent enough to see
  86.                 whether he should crunch or not crunch...)
  87.  
  88. Well, that's it... I hope you have a good use for this program! And be sure to
  89. pick up the latest sources from me and demos from Silicon on Ftp.Uwp.Edu!!!
  90.  
  91.            - Eric
  92.